﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.ServiceProcess; 

namespace WaveMaster.Holidays.Club.ServiceServer
{
    [RunInstallerAttribute(true)]
    public class ServiceClientInstaller : System.Configuration.Install.Installer
    {
        private ServiceInstaller serviceInstaller;
		private ServiceProcessInstaller processInstaller;

        public ServiceClientInstaller()
		{
			processInstaller = new ServiceProcessInstaller();
			serviceInstaller = new ServiceInstaller();
			processInstaller.Account=ServiceAccount.LocalSystem;
			serviceInstaller.StartType=ServiceStartMode.Automatic;
			serviceInstaller.ServiceName=ServiceClient.SVC_NAME;
			serviceInstaller.DisplayName="WaveMaster Service Client";
			Installers.Add(serviceInstaller);
			Installers.Add(processInstaller);
		}
    }
}
